/*
 * ad9833.h
 *
 * Copyright 2022 dh33ex <dh33ex@riseup.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA or see <http://www.gnu.org/licenses/>.
 *
 *
 */

#ifndef AD9833_H
#define AD9833_H

#define SINUSOID    0x2000
#define TRIANGLE    0x2002
#define SQUARE_DIV2 0x2020
#define SQUARE      0x2028


void AD9833_init(unsigned char ss);
void AD9833_set_freq(unsigned char ss, unsigned long freq);
void AD9833_set_phase(unsigned char ss, float phase);
void AD9833_set_waveform(unsigned char ss, unsigned short waveform);

#endif
